package com.example.publishDemo.Model;

import java.io.Serializable;
import java.time.LocalDate;

public class Article implements Serializable {
    private int a_id;
    private String author;
    private String author_gravatar;
    private int author_id;
    private String title;
    private String description;
    private String tags;
    private String content;
    private LocalDate date;
    private String cover;
    private int views;
    private double score;
    private int raters;
    private int isRecommend;

    public Article() {

    }

    public Article(int a_id, String author, String author_gravatar, int author_id, String title, String description, String tags, String content, LocalDate date, String cover, int views, double score, int raters, int isRecommend) {
        this.a_id = a_id;
        this.author = author;
        this.author_gravatar = author_gravatar;
        this.author_id = author_id;
        this.title = title;
        this.description = description;
        this.tags = tags;
        this.content = content;
        this.views = views;
        this.score = score;
        this.raters = raters;
        this.date = LocalDate.now();
        this.cover = cover;
        this.isRecommend = isRecommend;
    }

    public int getA_id() {
        return a_id;
    }

    public void setA_id(int a_id) {
        this.a_id = a_id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor_gravatar() {
        return author_gravatar;
    }

    public void setAuthor_gravatar(String author_gravatar) {
        this.author_gravatar = author_gravatar;
    }

    public int getAuthor_id() {
        return author_id;
    }

    public void setAuthor_id(int author_id) {
        this.author_id = author_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public int getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(int isRecommend) {
        this.isRecommend = isRecommend;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public int getRaters() {
        return raters;
    }

    public void setRaters(int raters) {
        this.raters = raters;
    }
}
